package com.itheima.redbaby.dao.domain;

import com.itheima.redbaby.dao.DBHelper;
import com.itheima.redbaby.dao.annotation.Column;
import com.itheima.redbaby.dao.annotation.Id;
import com.itheima.redbaby.dao.annotation.TableName;

@TableName(DBHelper.TABLE_PAYMENTINFO)
public class PaymentInfoPo {
//	CREATE TABLE `paymentinfo` (
//			  `id` int(11) NOT NULL auto_increment,
//			  `orderid` varchar(20) NOT NULL,
//			  `type` int(11) NOT NULL default '3',
//			  PRIMARY KEY  (`id`)
//			) ENGINE=InnoDB DEFAULT CHARSET=utf8;
			// 创建
	@Id(autoincrement=false)
	@Column(key=DBHelper.TABLE_PAYMENTINFO_ID)
	private int id;
	@Column(key=DBHelper.TABLE_PAYMENTINFO_ORDERID)
	private String orderid;
	@Column(key=DBHelper.TABLE_PAYMENTINFO_TYPE)
	private int type;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getOrderid() {
		return orderid;
	}
	public void setOrderid(String orderid) {
		this.orderid = orderid;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
}
